Skip to main content

ApiPivotField

Represents the ApiPivotField class.

Properties

NameTypeDescription
PositionnumberReturns or sets a value that represents the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data).
OrientationnumberReturns or sets a pivot field orientation value that represents the location of the field in the specified pivot table report.
CaptionstringReturns or sets a value that represents the label text for the pivot field.
NamestringReturns or sets a value representing the object name.
ValuestringReturns or sets a value representing the name of the specified field in the pivot table report.
SourceNamestringReturns a source name for the pivot table field.
IndexnumberReturns an index for the pivot table field.
TableApiPivotTableReturns the ApiPivotTable object which represents the pivot table for the current field.
ParentApiPivotTableReturns the parent object for the current field.
LayoutCompactRowbooleanReturns or sets the setting which specifies whether a pivot table field is compacted.
LayoutFormnumberReturns or sets the way the specified pivot table items appear — in table format or in outline format.
LayoutPageBreakbooleanReturns or sets the setting which specifies whether to insert a page break after each field.
ShowingInAxisbooleanReturns the setting which specifies whether the pivot table field is currently visible in the pivot table.
RepeatLabelsbooleanReturns or sets the setting which specifies whether to repeat items labels at each row.
LayoutBlankLinebooleanReturns and sets the setting which specifies whether to insert blank rows after each item.
ShowAllItemsbooleanReturns or sets the setting which specifies whether to show items with no data.
LayoutSubtotalsbooleanReturns or sets the setting which specifies whether to show subtotals.
LayoutSubtotalLocationnumberReturns or sets the layout subtotal location.
SubtotalNamestringReturns or sets the text label displayed in the subtotal column or row heading in the specified pivot table report.
SubtotalsobjectReturns or sets the subtotals.
FormulanumberReturns or sets a value that represents the object's formula.
DragToColumnbooleanReturns or sets the setting which specifies whether the specified field can be dragged to the column position.
DragToRowbooleanReturns or sets the setting which specifies whether the specified field can be dragged to the row position.
DragToDatabooleanReturns or sets the setting which specifies whether the specified field can be dragged to the data position.
DragToPagebooleanReturns or sets the setting which specifies whether the specified field can be dragged to the page position.
NumberFormatstringnull
CurrentPagestringnumber
PivotItemsApiPivotItemApiPivotItem[]

Methods